<?php
declare(strict_types=1);

namespace App\Controller\Api\V1\PositionSupervise;

use App\Controller\Api\BaseController;
use App\Repositories\PointPositionCategoryRepository;
use Hyperf\DbConnection\Db;
use Hyperf\Di\Annotation\Inject;

class CategoryController extends BaseController{

    public function all(){
        $return= PointPositionCategoryRepository::getInstance()->all(['id','name','description'],[],[[
            'field'=>'listorder',
            'sort'=>'desc'
        ],[
            'field'=>'id',
            'sort'=>'desc'
        ]]);
        return $this->response->success($return);
    }
}